package com.githan.ksback_v2_3.Entity;


import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author https://github.com/Han56
 * @date 2021/3/23 10:50
 * 描述：红阳三矿微震记录实体类
 */
public class MineQuakeResultsHongyang {


    //x y z 坐标
    private String xdata;
    private String ydata;
    //发生时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String quacktime;
    //事件等级
    private String quackgrade;
    //能量
    private String nengliang;
    //矩张量
    private String tensor;
    //破坏程度 b_value
    private String B_value;

    public String getxData() {
        return xdata;
    }

    public void setxData(String xData) {
        this.xdata = xData;
    }

    public String getyData() {
        return ydata;
    }

    public void setyData(String yData) {
        this.ydata = yData;
    }


    public String getQuacktime() {
        String noData=null;
        //返回值 2020-01-14 02:56:25
        if (quacktime.length()>0){
            return quacktime.substring(0,19);
        }else {
            return noData;
        }

    }

    public void setQuacktime(String quacktime) {
        this.quacktime = quacktime;
    }

    public String getQuackGrade() {
        return quackgrade;
    }

    public void setQuackGrade(String quackGrade) {
        this.quackgrade = quackGrade;
    }

    public String getNengLiang() {
        return nengliang;
    }

    public void setNengLiang(String nengLiang) {
        this.nengliang = nengLiang;
    }

    public String getTensor() {
        return tensor;
    }

    public void setTensor(String tensor) {
        this.tensor = tensor;
    }

    public String getB_value() {
        return B_value;
    }

    public void setB_value(String b_value) {
        B_value = b_value;
    }
}
